﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace shfa.snomtastic.systray.components
{


     public class WindowInfo
    {
        public IntPtr Hwnd { get; set; }

        public string GetWindowText
        {
            get 
            {
                StringBuilder sb = new StringBuilder(256);
                Win32.GetWindowText(this.Hwnd, sb, 256);
                return sb.ToString();
            }
        }

        public string GetWindowClass
        {
            get
            {
                StringBuilder sb = new StringBuilder(256);
                Win32.GetClassName(this.Hwnd, sb, 256);
                return sb.ToString();
            }
        }

        public WindowInfo()
        {
          
        }

        public WindowInfo(IntPtr hwnd)
        {
            this.Hwnd = hwnd;

        }



    }

    
}
